global class accountInfoAggregator {
  webservice static String getRiskRating()
  {
     String riskRating='AAA';
     
     wwwWebservicexNet ws=new wwwWebservicexNet();
     wwwWebservicexNet.CurrencyConvertorSoap cc=new  wwwWebservicexNet.CurrencyConvertorSoap();
     
      double res=0.0;

      try {
      	res=cc.ConversionRate('USD','ALL');  }
      catch (exception e) {
      	string Temp='An Error Occured: '+e.getmessage();
      	return Temp;
      }
	  
      string Temp= String.valueOf(res)+ ' (NGN/AFA)';
      return Temp;
  }

  webservice static String getCreditRating()
  {
     String creditRating='AAA';

     creditRating='AA';
     //return creditRating;
// This works
     wwwWebservicexNet ws=new wwwWebservicexNet();
     wwwWebservicexNet.CurrencyConvertorSoap cc=new  wwwWebservicexNet.CurrencyConvertorSoap();
      double res=0.0;

      try {
      	res=cc.ConversionRate('USD','ALL');  }
      catch (exception e) {
      	string Temp='An Error Occured: '+e.getmessage();
      	return Temp;
      }
	  
      string Temp='The currency conversion rate from '+'NGN'+' to '+'AFA'+' is ' +String.valueOf(res);
      return Temp;


/*
    wwwStrikeironCom3.zipdistanceSoap wCall=new wwwStrikeironCom3.zipdistanceSoap();
     wCall.LicenseInfo=new wsStrikeironCom3.LicenseInfo();
     wCall.LicenseInfo.RegisteredUser=new wsStrikeironCom3.RegisteredUser();
     wCall.LicenseInfo.RegisteredUser.UserID='hcheng@salesforce.com';
     wCall.LicenseInfo.RegisteredUser.Password='password';
     String sResult; 

     wwwStrikeironCom3.QueryResult wOutput=new wwwStrikeironCom3.QueryResult();
  try {
       wOutput=wCall.GetCityDistance('08807', '08816');
      }
      catch (exception e) {
      	string Temp='An Error Occured: '+e.getmessage();
      	return Temp;
      }

       return 'Distance from ' + wOutput.CityName1 + ' to ' + wOutput.CityName2 + ' is ' + wOutput.Distance;

*/
/* This WS Just expired
    wwwStrikeironComNew.zipinfoSoap wCall=new wwwStrikeironComNew.zipinfoSoap();
     wCall.LicenseInfo=new wsStrikeironComNew.LicenseInfo();
     wCall.LicenseInfo.RegisteredUser=new wsStrikeironComNew.RegisteredUser();
     wCall.LicenseInfo.RegisteredUser.UserID='hcheng@salesforce.com';
     wCall.LicenseInfo.RegisteredUser.Password='password';
     String sResult; 

     wwwStrikeironComNew.ZipInfoOutput wOutput=new wwwStrikeironComNew.ZipInfoOutput();
  try {
       wOutput=wCall.GetCityState('08807');
      }
      catch (exception e) {
      	string Temp='An Error Occured: '+e.getmessage();
      	return Temp;
      }

       return 'aa';
*/

/*
     wwwStrikeironCom.zipinfoSoap wCall=new wwwStrikeironCom.zipinfoSoap();
     wCall.LicenseInfo=new wsStrikeironCom.LicenseInfo();
     wCall.LicenseInfo.RegisteredUser=new wsStrikeironCom.RegisteredUser();
     wCall.LicenseInfo.RegisteredUser.UserID='hcheng@salesforce.com';
     wCall.LicenseInfo.RegisteredUser.Password='password';
     String sResult; 

     wwwStrikeironCom.ZipInfoOutput wOutput=new wwwStrikeironCom.ZipInfoOutput();
  try {
       wOutput=wCall.GetCityState('08807');
      }
      catch (exception e) {
      	string Temp='An Error Occured: '+e.getmessage();
      	return Temp;
      }

       return 'aa';
*/

     // Alternately, call other services exposed via SOA Callouts
/*    tempuriOrg.DNSSoap dns=new tempuriOrg.DNSSoap();
     dns.LicenseInfo=new strikeironIplookup.LicenseInfo();
     dns.LicenseInfo.RegisteredUser=new strikeironIplookup.RegisteredUser();
     dns.LicenseInfo.RegisteredUser.UserID='hcheng@salesforce.com';
     dns.LicenseInfo.RegisteredUser.Password='password';
     tempuriOrg.DNSInfo info=dns.DNSLookup('www.salesforce.com');

    return 'AA'; */

     //wOutput=wInterface.zipinfoSoap.GetCityState('08807');
    
     //wwwStrikeironCom.ZipInfoResult wFinal=wOutput.ServiceResult;
     //creditRating=wFinal.Latitude;


  }
}